﻿<UserControl x:Class="Signum.Windows.PageSelector"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="..\Resources.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            
        </ResourceDictionary>
        
    </UserControl.Resources>
    <StackPanel Orientation="Horizontal" x:Name="pagination">
        <StackPanel.Resources>
            <Style TargetType="Button">
                <Setter Property="MinWidth" Value="22"/>
                <Setter Property="Height" Value="22"/>
                <Setter Property="Margin" Value="0"/>
                <Setter Property="BorderBrush" Value="{DynamicResource BlueBorder}"/>
                <Setter Property="Background" Value="{DynamicResource LightBlueBackground}"/>
            </Style>
        </StackPanel.Resources>
        <Button x:Name="btPrevious" Content="&lt;" FontWeight="Bold" Margin="0,0,5,0" Click="btPrevious_Click" />
        <StackPanel Orientation="Horizontal" x:Name="spPages" ButtonBase.Click="spPages_Click">
            <StackPanel.Resources>
                <Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
                    <Setter Property="BorderThickness" Value="0"/>
                </Style>
            </StackPanel.Resources>
            <!--<Button Content="1"/>
            <Label Content="..."/>
            <Button Content="50"/>
            <Button Content="51"/>
            <Label Content="52"/>
            <Button Content="53"/>
            <Button Content="54"/>
            <Label Content="..."/>
            <Button Content="100"/>-->
        </StackPanel>
        <Button x:Name="btNext" Content="&gt;" FontWeight="Bold"  Margin="5,0,0,0" Click="btNext_Click" />
    </StackPanel>
</UserControl>
